SUPPORT / SAMPLES & SAS NOTES
 

Support

Problem Note 63157: The METALIB Procedure returns "ERROR: An exception has been encountered" when you register a table with multiple foreign keys

DetailsAboutRate It

When you run the METALIB procedure to register a database table to the metadata, you might receive a segmentation violation error. The problem can occur when the table contains several foreign keys with multiple columns.

In this situation, an error similar to the following is written to the SAS® log:

ERROR:  An exception has been encountered.
Please contact technical support and provide them with the following
       traceback information:
The SAS task name is [METALIB ]
Segmentation Violation
Traceback of the Exception:
/opt/sas/SASFoundation/9.4/sasexe(+0x2d567d) [0x7f8d44e4c67d]
/opt/sas/SASFoundation/9.4/sasexe(+0x2d5613) [0x7f8d44e4c613]
/opt/sas/SASFoundation/9.4/sasexe(+0x8dd68) [0x7f8d44c04d68]
/opt/sas/SASFoundation/9.4/sasexe(+0x8d706) [0x7f8d44c04706]
/opt/sas/SASFoundation/9.4/sasexe/tkmk.so(bkt_signal_handler+0x341)
       [0x7f8d42f1ae50]
/lib64/libpthread.so.0(+0x381620f520) [0x7f8d44529520]
/lib64/libc.so.6(memcpy+0xe) [0x7f8d43b5253e]
/opt/sas/SASFoundation/9.4/sasexe/sasmetas(vzml+0x1b7)
       [0x7f8d0d5dcfaf]
/opt/sas/SASFoundation/9.4/sasexe/sasmetas(addForKeys+0x568)
       [0x7f8d0d5a0095]
/opt/sas/SASFoundation/9.4/sasexe/sasmetas(addmeta+0x2094)
       [0x7f8d0d570cc5]
/opt/sas/SASFoundation/9.4/sasexe/sasmetas(refmeta+0x359a)
       [0x7f8d0d56815a]
/opt/sas/SASFoundation/9.4/sasexe/sasmetas(sasmetas+0x356f)
       [0x7f8d0d54ddab]
/opt/sas/SASFoundation/9.4/sasexe/(vvtentr+0x2d3) [0x7f8d44c04567]
/lib64/libpthread.so.0(+0x38162077e1) [0x7f8d445217e1]
/lib64/libc.so.6(clone+0x6d) [0x7f8d43bb08ed]

The problem is caused by the METALIB procedure incorrectly processing its internal list of items that contain key columns for each key constraint.

There is no circumvention for this problem.



Operating System and Release Information

Product FamilyProductSystemProduct ReleaseSAS Release
ReportedFixed*ReportedFixed*
SAS SystemBase SASSolaris for x649.49.4_M69.4 TS1M09.4 TS1M6
Linux for x649.49.4_M69.4 TS1M09.4 TS1M6
HP-UX IPF9.49.4_M69.4 TS1M09.4 TS1M6
64-bit Enabled AIX9.49.4_M69.4 TS1M09.4 TS1M6
64-bit Enabled Solaris9.49.4_M69.4 TS1M09.4 TS1M6
Windows 7 Professional x649.49.4_M69.4 TS1M09.4 TS1M6
Windows 7 Enterprise x649.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows Server 2012 Std9.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows Server 2012 R2 Std9.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows Server 2012 R2 Datacenter9.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows Server 2012 Datacenter9.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows Server 2008 for x649.49.4 TS1M0
Microsoft Windows Server 2008 R29.49.4 TS1M0
Microsoft Windows 109.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows 8.1 Pro x649.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows 8.1 Pro 32-bit9.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows 8.1 Enterprise x649.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows 8.1 Enterprise 32-bit9.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows 8 Pro x649.49.4_M69.4 TS1M09.4 TS1M6
Microsoft Windows 8 Enterprise x649.49.4_M69.4 TS1M09.4 TS1M6
Microsoft® Windows® for x649.49.4_M69.4 TS1M09.4 TS1M6
z/OS9.49.4_M69.4 TS1M09.4 TS1M6
z/OS 64-bit9.49.4_M69.4 TS1M09.4 TS1M6
* For software releases that are not yet generally available, the Fixed Release is the software release in which the problem is planned to be fixed.